package com.cgsrp.cgsrp_baby.controller;

import com.cgsrp.cgsrp_baby.domain.Baby;
import com.cgsrp.cgsrp_baby.domain.vo.BabyVo;
import com.cgsrp.cgsrp_baby.service.BabyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("baby")
public class BabyController {
    @Autowired
    private BabyService babyService;

    @PostMapping("addBaby")
    public boolean addBaby(Baby baby,Integer userId,String relationship){
        return babyService.addBaby(baby,userId,relationship);
    }
}
